const { getLogs, addLogs, delLogs } = require('../dao/logsDao');

//获得日志信息
module.exports.getLogs = async function () {
    const data = await getLogs();
    return data
}

//上传日志信息
module.exports.addLogs = async function (admins) {
    const data = await addLogs(admins);
    return data
}


//删除日志
module.exports.delLogs = async function (id) {
    const data = await delLogs(id);
    return {
        messge: '删除成功',
        data,
        status: 1
    }
}